package com.jwsoft.manager.core.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EduAddressTree;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Collection;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author fangs
 * @since 2023-02-03
 */
@Mapper
public interface EduAddressTreeMapper extends BaseMapper<EduAddressTree> {
    /**
     * 逻辑删除
     *
     * @param id 主键ID
     * @return
     */
    @Override
    int deleteById(Serializable id);

    /**
     * 逻辑删除方法
     *
     * @param entity 实体对象
     * @return
     */
    @Override
    int deleteById(EduAddressTree entity);

    /**
     * 批量逻辑删除
     *
     * @param idList 主键ID列表或实体列表(不能为 null 以及 empty)
     * @return
     */
    @Override
    int deleteBatchIds(Collection<?> idList);
}
